package com.xilixili.miaomi.wechat.entity;

/**
 * Created by liumin on 2017/12/20.
 */

public class ContentInfo {
    private String content = "";
    private UserInfo sender = new UserInfo();

    public boolean checkValid(){
        if(content == null || !sender.checkValid()) {
            return  false;
        }
        return true;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public UserInfo getSender() {
        return sender;
    }

    public void setSender(UserInfo sender) {
        this.sender = sender;
    }

    @Override
    public String toString() {
        return "ContentInfo{" +
                "content='" + content + '\'' +
                ", sender='" + sender.toString() + '\'' +
                '}';
    }
}
